﻿using Models;
using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace BLL
{
    /// <summary>
    /// 留言表
    /// </summary>
   public class LeaveBLL
    {
        //留言添加
        public static bool leaveAddBLL(Leave l) {
            return LeaveDAL.leaveAdd(l)>0;
        }
        //留言查询
        public static DataTable leaveCKBLL() {
            return LeaveDAL.leaveCK();
        }
        //留言id查询
        public static DataTable leaveCKBLL(int id)
        {
            return LeaveDAL.leaveCK(id);
        }
        //美食删除
        public static bool leaveDeleteBLL(int id) {
            return LeaveDAL.leaveDelete(id) > 0;
        }
        //留言模糊查询
        public static DataTable leaveMHCKBLL(string sq) {
            return LeaveDAL.leaveMHCK(sq);
        }
        //留言id查询
        public static DataTable leaveIdBLL(int id) {
            return LeaveDAL.leaveId(id);
        }
        //评价回复
        public static bool leaveHfBLL(string hf, int id) {
            return LeaveDAL.leaveHf(hf,id) > 0;
        }
        //查询数据条数
        public static object dataNumBLL() {
            return LeaveDAL.dataNum();
        }
    }
}
